package br.ufmt.bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.SelectItem;
import br.ufmt.model.SexoEnum;


@ManagedBean
@SessionScoped
public class SexoEnumBean {
	public SelectItem[] getSexo() {
		
		SelectItem[] items = new SelectItem[SexoEnum.values().length];		
		int i = 0;		
		for(SexoEnum s: SexoEnum.values()) {
		
			items[i++] = new SelectItem(s, s.getSexo());		
		}
	
		return items;
	
		}

}
